from django.db import models

# Create your models here.
class Text(models.Model):
    id = models.AutoField(primary_key=True)
    text = models.CharField('文本', default='', max_length=1000)
    status = models.IntegerField('状态')
    create_time = models.DateTimeField('创建时间', auto_now_add=True)
    owner=models.CharField('创建人', default='', max_length=50)
    def __str__(self):
        return self.name

    class Meta:
        db_table = 'text'